package com.gulimall.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 1.导入elasticsearch-rest-high-level-client依赖，指定版本号一致
 * 2.编写配置文件，给容器中注入RestHighLevelClient
 *3.参照API进行操作
 */
@EnableDiscoveryClient
@SpringBootApplication(exclude=DataSourceAutoConfiguration.class)
public class GuliamllSearchApplication {

    public static void main(String[] args) {
        SpringApplication.run(GuliamllSearchApplication.class, args);
    }

}
